<include file="Public:header" />
<div class="shade">上传中...</div>
<script type="text/javascript" src="/Public/jquery.min.js"></script>
<script type="text/javascript" src="/Public/uploadify/jquery.uploadify.min.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/uploadify/uploadify.css" />

<script type="text/javascript">
$(function() {
	$('#file_upload').uploadify({
		'swf'      : '/Public/uploadify/uploadify.swf',
		'uploader' : '/admin.php?m=Admin&c=Ajax&a=upload&site={$data["site"]}&category={$data["category"]}',
		'buttonClass':'',
		'buttonText':'+ 请选择上传的照片',
		'fileSizeLimit':1024*2,
		'removeTimeout' : 0,
		'onUploadStart': function(file){
			$('.shade').show();
		},
		'onUploadSuccess' : function(file, data, response) {
			 
		},
		'onQueueComplete' : function(queueData) { 
			$('.shade').hide();
		}
	});
});
</script>

<input type="file" name="file_upload" id="file_upload" />

<include file="Public:footer" />